package com.dashu.school.model;


import com.dashu.base.enums.BusinessType;
import com.dashu.base.enums.common.CompanyType;
import com.dashu.base.enums.school.SchoolType;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "ds_company")
@Data
public class Company implements Serializable {
    /**
     * 单位属性
     */
    @Id
    private long id; //主键id
    private long createTime;//创建时间
    private long createUser;// 创建者
    private long updateTime;//更新时间
    private long updateUser;//更新者
    private long baseId; //所绑定的账号
    private long companyNum;//学校编号
    private String companyName;  //  学校名称
    @Enumerated(EnumType.STRING)
    private BusinessType businessType; //经营类型
    @Enumerated(EnumType.STRING)
    private CompanyType companyType; //单位类型
    @Enumerated(EnumType.STRING)
    private SchoolType schoolType;
    private String address;  // 地址
    private String x;  // 经度
    private String y; // 纬度
    private String city;  // 城市
    private String province; // 省份

}
